
ie=win32com.client.Dispatch("InternetExplorer.Application")   
'''
ie.Navigate("http://www.baidu.com")   
ie.Visible=1  
while ie.Busy:   
  time.sleep(1)   
  
document=ie.Document   
document.getElementById("kw").value="alibaba"  
document.getElementById("su").click()


ie.Navigate("http://10.1.64.21/SoftPlat/SoftPlat_Query/Query_UnCloseChange.aspx")

ie.Visible=1  
while ie.Busy:   
  time.sleep(1)   
  
document = ie.Document
str = document.getElementById("DataGrid1")
print ie.title
'''
ie.Navigate("www.baidu.com")

#ie.Visible=1  
while ie.Busy:   
  time.sleep(1)  
ie.Quit()

import urllib2
response = urllib2.urlopen('http://www.qq.com/')
html = response.read()